﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TorchView.Composition;
using System.Collections.ObjectModel;
using TorchView.PakViewer.Zip;
using TorchView.GameContent.Data;

namespace TorchView.PakViewer
{
    public sealed class PakViewModel : IPakViewModel
    {
        #region Properties
        public IView<IPakViewModel> View { get; private set; }
        public ObservableCollection<IZipNode> FileRoot { get; private set; }
        #endregion

        public PakViewModel(IView<IPakViewModel> view, PakModel pak)
        {
            View = view;
            view.Model = this;

            FileRoot = new ObservableCollection<IZipNode>{
                pak.Root
            };
        }
    }
}
